//
//  CLChatTableViewCell.h
//  MasonryTest
//
//  Created by Charles on 2016/12/6.
//  Copyright © 2016年 Charles. All rights reserved.
//

#import <UIKit/UIKit.h>

static const CGFloat kCellContentMaxWidth = 200;//消息内容最大宽度
static const CGFloat kBubbleMinWidth = 50; //气泡最小长度

@interface CLChatTableViewCell : UITableViewCell

@property (strong,nonatomic) UIImageView * bubbleImage;
@property (strong,nonatomic) UILabel * textContent;
@property (strong,nonatomic) UIImageView * headImage;
@property (assign,nonatomic) BOOL isFromSelf;

- (void)setContent:(NSString *)content direction:(BOOL)direction;

+ (CGFloat)rowHeightForContent:(NSString *)content;

@end
